package districting;

public class VoronoiesqueMethod {
   private Nation nation;

   public VoronoiesqueMethod(Nation nation) {
      this.nation = nation;
   }

   public void allocateDivisions() {
      for (State state : nation.getStates()) {
         allocateDivisions(state);
      }
   }

   public void allocateDivisions(State onlyThisState) {
      System.out.println("VorMet.aD(" + onlyThisState.getName() + ")");
      VoronoiesqueRegion region = new VoronoiesqueRegion(onlyThisState.getNumDivisions());
      region.createFromState(onlyThisState);
      //region.determineDivisions();
      region.determineDivisionsWithStealing();
   }

}
